<div style="min-height: 300px; padding-bottom: 20px; width: 98%; float: left" class="portlet x12">
	<div class="portlet-header">
		<h4>Danh sách đăng ký du học

		<!--<div class="buttonrow" style="float: right; margin-right: 20px;">
		<a href="<?php echo base_url ();?>admin/lienhe/form_add">
				<input type="button" value="Thêm liên hệ mới" class="btn btn-orange"></a></div>-->

		</h4>
		</div> <!-- .portlet-header -->

		<table>

		 <!-- them phan header -->
		 <thead>
				<tr>
					<th>Họ tên</th>
					<th>Email</th>
					<th>Trình độ học vấn</th>
					<th>Phone</th>
					<th>Address</th>
					<th>Message</th>
<!--					<th>Chức năng</th>-->
				</tr>
			</thead>
		<!-- ket thuc them head -->
		<?php
		  foreach($lists as $row)
		   {
		   $id = $row['id'];
		   $name = $row['name'];
		   $email = $row['email'];
		   $phone = $row['phone'];
		   $address = $row['address'];
		   $message = $row['message'];
		   $education = $row['education'];
		   echo '<tr>';
		   echo '<td>'.$name.'</td>';
		   echo '<td>'.$email.'</td>';
		   echo '<td>'.$education.'</td>';
		   echo '<td>'.$phone.'</td>';
		   echo '<td>'.$address.'</td>';
		   echo '<td>'.$message.'</td>';
		?>

		       <!-- dua button xoa ra -->
				<!--<td>
				<input type="button" value="Sửa" class="btn btn-green"
					onclick="sua_item('<?php echo $id;?>')">
				<input type="button" value="Xóa" class="btn btn-red"
					onclick="del_item('<?php echo $id;?>')">
			    </td>-->

				<script>
				function del_item(id){
						var store_del = confirm("Xoa thong tin nay ?");
					if(store_del==true){
						window.location="<?php echo base_url();?>admin/lienhe/xoa/"+id;
					}else{
						return false;
					}
				}

				function sua_item(id){
				 window.location="<?php echo base_url();?>admin/lienhe/form_sua/"+id;
				}
				</script>

				<!-- ket thuc dua button xoa -->
        <?php
		   echo '</tr>';
		   }
		?>
		</table>

</div>	<!-- .portlet x12 -->
